<template>
  <div>
    <h3>欢迎来到列表页面</h3>

    <ListItem></ListItem>

    <div v-load>composables 公共方法，可自动注入</div>

    <strong>
      商品名称：{{ goodsInfo.goodsName }}
      价格：{{ goodsInfo.price }}
    </strong>
  </div>
</template>

<script setup lang="ts">
import { goodsStore } from '@/stores/goodsStore'
const goodsInfo = goodsStore().goodsInfo
</script>
